#include <iostream>
#include <fstream>



int main()
{
  std::string filename = "problem2.inp";

  std::ifstream input_file;
  input_file.open(filename.c_str());
  if (input_file.fail())
    {
      exit (1);
    }

  std::size_t val;
  std::size_t min = 100;
  std::size_t max = 0;
  std::size_t total = 0;
  std::size_t count = 0;

  while (!input_file.eof())
    {
      input_file >> val;
      
      total += val;
      count++;

      if (min > val)
	{
	  min = val;
	}

      if (max < val)
	{
	  max = val;
	}
    }

  std::cout << "Min = " << min << std::endl;
  std::cout << "Max = " << max << std::endl;
  std::cout << "Avg = " << 1.0*total/count << std::endl;
}
